<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .dome{
            width: 300px;
            height: 300px;
            background-color: aqua;
        }
    </style>
</head>
<body>
    <div class="dome" onmouseenter="enter()" onmouseleave="leave()" onmousemove="move()"></div>
</body>
<script type="text/javascript">
    function enter(){
        console.log('进来了');
    }

    function leave(){
        console.log('出去啦');
    }

    function move(){
        console.log('疯狂移动');
    }
</script>
</html>